<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<!DOCTYPE HTML>
<html ng-app>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <title>${title}</title>
    <%@ include file="/WEB-INF/jsp/commons/meta.jsp" %>
    <link href="${ctx}/resources/new/style.css" type="text/css" rel="stylesheet"/>

</head>
<body>
<style>
    select {
        width: auto;
        margin-right: 5px;
    }
</style>
<!-- 分页显示演示开始 -->
<form id="listForm" class="well form-search" action="${ctx}/adoms/goods/statistics" method="get">
    <input type="hidden" name="pageNo" id="pageNo" value="${pageData.pagination.pageNo}"/>
    <input type="hidden" name="fieldName" id="fieldName" value="${pageData.compositor.fieldName}"/>
    <input type="hidden" name="compositorType" id="compositorType" value="${pageData.compositor.compositorType}"/>
    <table class="table table-striped table-bordered table-condensed">
        <tr align="center">
            <th>
                入库日期：从
                <input style="width: 90px; background-color: #FFFFFF; cursor: auto;" readonly="readonly" type="text"
                       datepicker="datepicker"/>
                到
                <input style="width: 90px; background-color: #FFFFFF; cursor: auto;" readonly="readonly" type="text"
                       datepicker="datepicker"/>
                商品名称：
                <select>
                    <option value="">全部</option>
                    <option value="">...</option>
                    <option value="">...</option>
                    <option value="">...</option>
                    <option value="">...</option>
                </select>
                状态：
                <select>
                    <option value="">全部</option>
                    <option value="">待售</option>
                    <option value="">已出库</option>
                </select>
                <button class="btn btn-small" onclick="search()" type="button">
                    <i class="icon-search"></i>
                    搜索
                </button>
            </th>
        </tr>
    </table>
</form>
<table class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>#</th>
        <th>
            <a href="javascript:sort('marchandise')">所属商品</a>
        </th>
        <th>
            <a href="javascript:sort('department')">所属部门</a>
        </th>
        <th>
            <a href="javascript:sort('state')">状态</a>
        </th>
        <th>
            <a href="javascript:sort('wCode')">流水码</a>
        </th>
        <th>
            <a href="javascript:sort('qrCode')">货物二维码</a>
        </th>
        <th>入库时间</th>
        <th align="center">操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="entity" items="${pageData.result}" varStatus="index">
        <tr <c:if test="${!entity.visible}">bgcolor="#AFEEEE"</c:if>>
            <td>${index.index + 1}</td>
            <td>${entity.marchandise.name}</td>
            <td>${entity.department.name}</td>
            <td class="tBlue">${entity.state}</td>
            <td class="tBlue">${entity.qrCode.wCode}</td>
            <td>
                    ${entity.qrCode.qrCode}
                    <%-- 					<img class="boxQr" src="${ctx}/adoms/qrGoodsCode/qrImg?qr=${entity.qrCode.qrCode}" /> --%>
            </td>
            <td>
                <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${entity.insertTime}"/>
            </td>
            <td align="center">
                <c:if test="${'已出库' == entity.state }">--</c:if>
                <c:if test="${'已出库' != entity.state }">
                    <a href="${ctx}/adoms/goods/edit/${entity.id}">更改</a>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<%@ include file="/WEB-INF/jsp/commons/pager.jsp" %>
</body>
</html>